import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import 'lib-flexible'
import './common/style/base.scss'
import fastclick from 'fastclick'
fastclick.attach(document.body) //解决移动端点击300ms延时
// 导入 QQ SDK
import { QC } from '@/libs/qc_jssdk.js'
Vue.prototype.$QQ = QC


import { Tabbar, TabbarItem, Icon, Swipe, SwipeItem, Grid, GridItem } from 'vant';
Vue.use(Tabbar).use(TabbarItem).use(Icon).use(Swipe).use(SwipeItem).use(Grid).use(GridItem);
// 导入图片
import { Image as VanImage } from 'vant';
Vue.use(VanImage);
// 引入图片懒加载
import { Lazyload } from 'vant';
Vue.use(Lazyload);
// 导入导航栏
import { NavBar } from 'vant';
Vue.use(NavBar);
// 导入名片
import { Card } from 'vant';
Vue.use(Card);
// 导入立即购买
import { GoodsAction, GoodsActionIcon, GoodsActionButton } from 'vant';
Vue.use(GoodsAction);
Vue.use(GoodsActionButton);
Vue.use(GoodsActionIcon)
// 导入商品规格
import { Sku } from 'vant';
Vue.use(Sku);
// 导入按钮
import { Button } from 'vant';
Vue.use(Button);
// 提交订单部分
import { SubmitBar } from 'vant';
Vue.use(SubmitBar);
// 复选框
import { Checkbox, CheckboxGroup } from 'vant';
Vue.use(Checkbox);
Vue.use(CheckboxGroup);
// Stepper 步进器
import { Stepper } from 'vant';
Vue.use(Stepper);
// SwipeCell 滑动单元格
import { SwipeCell } from 'vant';
Vue.use(SwipeCell);
// 导入下拉刷新
import { PullRefresh } from 'vant';
Vue.use(PullRefresh);
// 导入轻提示
import { Toast } from 'vant';
Vue.use(Toast);
// 添加下拉刷新
import { List } from 'vant';
Vue.use(List);
// 添加弹出层
import { Popup } from 'vant';
Vue.use(Popup);
// 将所有 loading Toast 设置为背景不可点击
Toast.setDefaultOptions('loading', { forbidClick: true });
// 重置所有 Toast 的默认配置
Toast.resetDefaultOptions();
// 加载效果
import { Loading } from 'vant';
Vue.use(Loading);


Vue.config.productionTip = false
// 引入字体图标
import './assets/font/iconfont.css'

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
